package edu.nf.homework;

import edu.nf.homework.container.PaymentFactory;
import edu.nf.homework.dao.Payment;
import edu.nf.homework.service.PaymentService;

/**
 * @author CSY
 * @date 2025 - 04 - 16
 */
public class Main {
    public static void main(String[] args) {
        PaymentFactory factory = new PaymentFactory("edu.nf.homework");
        Payment wechat = factory.createPayment("wechat");
        PaymentService service = new PaymentService(wechat);
        service.payMoney(80);
    }
}
